package com.tien.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tien.dao.UserDao;
import com.tien.model.User;
import com.tien.service.UserService;
import com.tien.utils.SecurityUserUtil;

/**
 *
 * @author  Tian 
 * @Mail    tianxin_star@163.com
 * @version date：Mar 13, 2012 2:04:47 PM
 * 
 */
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	@Override
	public User findUserByUserName(String userName) {
		// TODO Auto-generated method stub
		return userDao.getUserByUserName(userName);
	}

	@Override
	public List<User> findAllUsers(int start, int limit) {
		// TODO Auto-generated method stub
		return userDao.findAllUsers(start, limit);
	}

	@Override
	public Long findAllUsersTotalRows() {
		// TODO Auto-generated method stub
		return userDao.findAllUsersTotalRows();
	}

	@Override
	public Long updateUser(User user) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Long addUser(User user) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteUserById(Long id) {
		// TODO Auto-generated method stub
		
	}

}
